import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/HomeView.vue'),
    },
    {
      path: '/introduction',
      name: 'introduction',
      component: () => import('../views/IntroductionView.vue'),
    },
    {
      path: '/shannon',
      name: 'shannon',
      component: () => import('../views/ShannonView.vue'),
    },
    {
      path: '/elements',
      name: 'elements',
      component: () => import('../views/ElementsView.vue'),
    },
    {
      path: '/applications',
      name: 'applications',
      component: () => import('../views/ApplicationsView.vue'),
    },
    {
      path: '/future',
      name: 'future',
      component: () => import('../views/FutureView.vue'),
    },
    {
      path: '/forum',
      name: 'forum',
      component: () => import('../views/ForumView.vue'),
    },
    {
      path: '/forum/:id',
      name: 'forum-detail',
      component: () => import('../views/ForumDetailView.vue'),
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue'),
    },
     {
      path: '/user',
      name: 'user',
      component: () => import('../views/UserView.vue'),
    },
  ],
  scrollBehavior() {
    return { top: 0 }
  },
})

export default router

